<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">专家名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">头像:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avator" data-rule="required" class="form-control" size="50" name="row[avator]" type="text" value="{$row.avator|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-avator" class="btn btn-danger faupload" data-input-id="c-avator" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp,image/webp" data-multiple="false" data-preview-id="p-avator"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avator" class="btn btn-primary fachoose" data-input-id="c-avator" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avator"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-avator"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">专家职称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-zhicheng" data-rule="required" class="form-control" name="row[zhicheng]" type="text" value="{$row.zhicheng|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">坐诊医院:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-hospitalname" data-rule="required" class="form-control" name="row[hospitalname]" type="text" value="{$row.hospitalname|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">坐诊科室:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-keshiname" data-rule="required" class="form-control" name="row[keshiname]" type="text" value="{$row.keshiname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">擅长领域:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field" data-rule="required" class="form-control" name="row[field]" type="text" value="{$row.field|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">诊疗疾病范围:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-disease_fanwei" data-rule="required" class="form-control" name="row[disease_fanwei]" type="text" value="{$row.disease_fanwei|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">专家介绍:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-content" class="form-control editor" rows="5" name="row[content]" cols="50">{$row.content|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">权重:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" data-rule="required" class="form-control"  name="row[weigh]" type="text"  value="{$row.weigh}">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
